package com.open.demo.span.engine

import android.annotation.SuppressLint
import android.content.Context
import android.text.SpannableStringBuilder
import android.util.AttributeSet
import android.widget.TextView

@SuppressLint("AppCompatCustomView")
class SpanTextView : TextView {
    constructor(context: Context) : this(context, null) {
    }

    constructor(context: Context, attributeSet: AttributeSet?) : this(context, attributeSet, 0) {
    }

    constructor(context: Context, attributeSet: AttributeSet?, defStyleAttr: Int) : super(context, attributeSet, defStyleAttr) {
    }

    override fun setText(text: CharSequence?, type: BufferType?) {
        super.setText(text, type)
        val builder:SpannableStringBuilder = SpannableStringBuilder(text)
    }

}